package crew.blt.handsound.client.webgl.element;

import crew.blt.handsound.client.webgl.property.PropertyFactory;

/**
 *
 * SceneJS example :
 * <p>
 *	type : "box",<br/>
 *	solid: true,<br/>
 *	xSize:2,<br/>
 *	ySize:2,<br/>
 *	zSize:0.5
 *
 * @author blt
 *
 */
public class BoxElement extends Element {

	public BoxElement(String id, boolean readValues) {
		super(id);
		addProperty(PropertyFactory.createBooleanProperty("solid"),readValues);
		addProperty(PropertyFactory.createFloatProperty("xSize"),readValues);
		addProperty(PropertyFactory.createFloatProperty("ySize"),readValues);
		addProperty(PropertyFactory.createFloatProperty("zSize"),readValues);
	}

	@Override
	public String getElementType() {
		return "box";
	}
}
